package com.yanqu.road.server.manager.activity.hsisland;

import com.yanqu.road.dao.impl.activity.hsisland.HsIslandKillBossRecordDaoImpl;
import com.yanqu.road.entity.activity.hsisland.data.HsIslandKillBossRecord;

public class CrossHsIslandKillBossRecord {

    private HsIslandKillBossRecord killBossRecord;

    public CrossHsIslandKillBossRecord(HsIslandKillBossRecord killBossRecord) {
        this.killBossRecord = killBossRecord;
    }

    public HsIslandKillBossRecord getKillBossRecord() {
        return killBossRecord;
    }



    /**
     * 保存数据
     */
    public void save() {
        if (killBossRecord != null) {
            if (killBossRecord.isInsertOption()) {
                new HsIslandKillBossRecordDaoImpl().add(killBossRecord);
            } else if (killBossRecord.isUpdateOption()) {
                new HsIslandKillBossRecordDaoImpl().update(killBossRecord);
            }
        }
    }
}
